Перейти к основному содержимому

Delete Bundle Users API

POST /deleteBundleUsers

Description

This API endpoint allows an admin to delete multiple users at once by providing a list of user IDs. Deleting users in bulk will remove all selected users and their associated data from the system.

Request Body

The request utilizes GraphQL to perform the deleteBundleUsers mutation.

Mutation:

mutation deleteBundleUsers ($ids: [Int]) {
deleteBundleUsers (ids: $ids)
}

Variables:

{
"ids": [
0
]
}
  • ids (List of Int): A list of unique identifiers corresponding to the users that need to be deleted.

Response:

  • Success (200 OK):

    • If the deletion is successful, the response will confirm that the users have been deleted, though it may not return additional data.
  • Error (4XX/5XX):

    • Appropriate error messages and status codes will be returned in cases of invalid user IDs, missing required fields, or server errors.

Note:

Ensure that the ids correspond to existing users that need to be deleted. Once deleted, the users' data cannot be recovered, so make sure to back up any necessary information before performing this action. Only admins with the appropriate permissions can delete users from the system.